﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="RefillBankAccount.aspx.cs" Inherits="Operator_RefillBankAccount" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <br />
    <asp:HyperLink ID="OperatorLink" runat="server" NavigateUrl="~/Operator/OperatorPanel.aspx">Панель оператора</asp:HyperLink>
    &nbsp;→<asp:HyperLink ID="OperatorClientLink" NavigateUrl="../Operator/Clients.aspx" runat="server">Клиенты</asp:HyperLink>
&nbsp; → 
    <asp:Label ID="ContractLabel" runat="server" Text="Пополнение счёта" Font-Bold="true"></asp:Label><br />
    <br />
    <table>
        <tr>
            <td>
                <asp:Label ID="AmountLabel" runat="server" Text="Сумма"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="Amount" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="Amount"
                    Display="Static" ErrorMessage="*" ForeColor="Red" SetFocusOnError="true" runat="server"
                    ValidationGroup="RegisterCreditValidationGroup"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="MinValueValidator" ControlToValidate="Amount"
                    Text="Введите целое положительное число." ForeColor="Red" ValidationExpression="(^[1-9][0-9]*$)"
                    ValidationGroup="RegisterCreditValidationGroup" />
            </td>
        </tr>
    </table>
    <br />
    <asp:Button ID="RefillButton" runat="server" Text="Пополнить" OnClick="RefillButton_Click"  ValidationGroup="RegisterCreditValidationGroup" />
</asp:Content>
